package com.it.domain;
/*
@@ Author : Yi Wen Ke
@@ Teacher 实体类
 */
public class Teacher {

    private String name;
    private Integer age;
    private String level;
    private String phoneNum;
    private Double salary;

    public Teacher() {
    }

    public Teacher(String name, Integer age, String level, String phoneNum, Double salary) {
        this.name = name;
        this.age = age;
        this.level = level;
        this.phoneNum = phoneNum;
        this.salary = salary;
    }

    public void teach(){

        System.out.println(this.name + "老师教书");
    }
    public void rest(){

        System.out.println(this.name+"老师休息");
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", level='" + level + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", salary=" + salary +
                '}';
    }
}
